package com.mianyang.zhangsan.plugin.quartz.contant;

/**
 * @author jiangjr
 * @date 2022-11-23
 */
public enum TaskType {
    /**
     * 到期提醒
     */
    EXPIRE_REMIND("expireRemind", "remind"),
    CONSOLE_PRINT("consolePrint", "console");

    /**
     * 组件名称
     */
    private final String beanName;

    /**
     * 执行方法
     */
    private final String methodName;

    TaskType(String beanName, String methodName) {
        this.beanName = beanName;
        this.methodName = methodName;
    }

    public String getBeanName() {
        return this.beanName;
    }

    public String getMethodName() {
        return this.methodName;
    }
}
